package dataservice.chooseCourseDataService;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import po.chooseCoursePO.ChooseCoursePO;
import dataservice.ResultMessage;

public interface ChooseCourseDatabaseService extends Remote {
	

	public ResultMessage insert(ChooseCoursePO po) throws RemoteException;

	public ResultMessage delete(ChooseCoursePO po) throws RemoteException;

	public ResultMessage update(ChooseCoursePO po) throws RemoteException;
	
	public double getScore(ChooseCoursePO po) throws RemoteException;

	public ArrayList<ChooseCoursePO> findStuCourse(String stuid) throws RemoteException;

	public ArrayList<ChooseCoursePO> findTeaCourse(String courseid) throws RemoteException;
	
	public ArrayList<ChooseCoursePO> findChooseCourseByTerm(int term) throws RemoteException;

	public ResultMessage insertTemp(ChooseCoursePO po) throws RemoteException;

	public ResultMessage deleteTemp(ChooseCoursePO po) throws RemoteException;

	public ArrayList<ChooseCoursePO> findStuCourseTemp(String stuid) throws RemoteException;

	public ArrayList<ChooseCoursePO> findTeaCourseTemp(String courseid) throws RemoteException;

	public ArrayList<ChooseCoursePO> findChooseCourseByTermTemp(int term) throws RemoteException;

	public ArrayList<ChooseCoursePO> findChooseCourseByIDAndTerm(String studentID,int term) throws RemoteException;

	public ArrayList<ChooseCoursePO> findChooseCourseByIDAndTermTemp(String studentID,int term) throws RemoteException;

	
	public ArrayList<ChooseCoursePO> findAllChooseCourseTemp() throws RemoteException;

	public ArrayList<ChooseCoursePO> sortChooseCourse() throws RemoteException;
}
